﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Rabbit.Repository.Migrations
{
    public partial class log3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<DateTime>(
                name: "AddDate",
                table: "TraceManage",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "AddName",
                table: "TraceManage",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DelDate",
                table: "TraceManage",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DelName",
                table: "TraceManage",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "IsDel",
                table: "TraceManage",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TMImage",
                table: "TraceManage",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "TMManufacturing",
                table: "TraceManage",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "TMProduction",
                table: "TraceManage",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdDate",
                table: "TraceManage",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UpdName",
                table: "TraceManage",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AddDate",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "AddName",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "DelDate",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "DelName",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "IsDel",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "TMImage",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "TMManufacturing",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "TMProduction",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "UpdDate",
                table: "TraceManage");

            migrationBuilder.DropColumn(
                name: "UpdName",
                table: "TraceManage");
        }
    }
}
